package sv.com.renacempleo.dto.red;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgCatalogo;

@Entity
@Table(name = "red_idiomas_demandante")
public class RedIdiomasDemandante {
	
	@Id
	@Column(name = "red_idiodem_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redIdiomaDemandanteId;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "red_dem_folio", nullable = false)
	private RedDemandantes redDemandante;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_idioma_id", nullable = false)
	private CtgCatalogo ctgIdioma;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_nivel_id", nullable = false)
	private CtgCatalogo ctgNivel;
	public Long getRedIdiomaDemandanteId() {
		return redIdiomaDemandanteId;
	}
	public void setRedIdiomaDemandanteId(Long redIdiomaDemandanteId) {
		this.redIdiomaDemandanteId = redIdiomaDemandanteId;
	}
	public RedDemandantes getRedDemandante() {
		return redDemandante;
	}
	public void setRedDemandante(RedDemandantes redDemandante) {
		this.redDemandante = redDemandante;
	}
	public CtgCatalogo getCtgIdioma() {
		return ctgIdioma;
	}
	public void setCtgIdioma(CtgCatalogo ctgIdioma) {
		this.ctgIdioma = ctgIdioma;
	}
	public CtgCatalogo getCtgNivel() {
		return ctgNivel;
	}
	public void setCtgNivel(CtgCatalogo ctgNivel) {
		this.ctgNivel = ctgNivel;
	}

}
